// import { get, post, put, del } from '@/js/api/dataSource'
import { get, put, del } from '@/js/api/dataSource'
export default {
	// 渠道
	channel: {
		// 渠道列表查询
		findAllChannels () {
			return get({ url: '/archives/channel/find_channels' })
		},
		// 渠道名称查询 (系统绑定的供应链)
		findChannelsName () {
			return get({ url: '/archives/channel/get_scm' })
		},
		// 系统绑定的供应链
		// getSCMComplete () {
		// 	return get({ url: '/archives/channel/get_scm', responseComplete: true })
		// },
		getSCM () {
			return get({ url: '/archives/channel/get_scm' })
		},
		// 创建渠道 /archives/channel/save_channel
		saveChannel () {
			return put({ url: '/archives/channel/save_channel' })
		},
		// 删除渠道 /archives/channel/delete_channel
		deleteChannel () {
			return del({ url: '/archives/channel/delete_channel' })
		}
	}
}
